//Number对象
//var num = 2.1;
//var num1 = new Number(2.1);
//var num1 = Number(2.1);
//var num1 = new Number(true);
//var num1 = new Number('hello');
//var num1 = new Number('hello123');//NaN
var num1 = new Number('');//0
console.log(num1);
//Number对象的属性
/*
console.log(Number.MAX_VALUE); //最大值
console.log(Number.MIN_VALUE); //最小值
console.log(Number.NaN);
console.log(NaN == NaN);
*/
//Number对象的方法
var num2 = 'abc123'; // Number('abc123') NaN
//是NaN返回true
console.log(isNaN(num2));
//var num3 = 3.1415926;
var num3 = 2.99 + 1.98 + 3.65;
console.log(num3.toFixed(1));









